import { Login } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
import { obj2fd } from "@/utils/index";
import http from "@/api";
// 查询列表
export const sysOverView = () => {
  return http.get(PORT1 + `/secure/sysOverView`); // 正常 post json 请求  ==>  application/json
};
// 查询列表
export const sysDistribut = () => {
  return http.get(PORT1 + `/secure/sysDistribut`); // 正常 post json 请求  ==>  application/json
};
// 虚拟域名
export const getDomain = (params: object) => {
  return http.post(PORT1 + `/secure/dnsagList/${params.pageNum}/${params.pageSize}`); // 正常 post json 请求  ==>  application/json
};
// 封堵总数
export const plugCountDate = params => {
  return http.post(PORT1 + `/secure/plugCountDate`, params); // 正常 post json 请求  ==>  application/json
};
// 告警总数
export const warnCountDate = params => {
  return http.post(PORT1 + `/secure/warnCountDate`, params); // 正常 post json 请求  ==>  application/json
};
// 告警总数
export const sentryDipTop = () => {
  return http.post(PORT1 + `/secure/sentryDipTop/0`); // 正常 post json 请求  ==>  application/json
};
// 告警总数
export const warnSipTop = () => {
  return http.post(PORT1 + `/secure/warnSipTop`); // 正常 post json 请求  ==>  application/json
};
// 会话
export const flowDay = () => {
  return http.post(PORT1 + `/secure/flowDay/86400/3600`); // 正常 post json 请求  ==>  application/json
};
// 攻击源
export const warnThreaTop = () => {
  return http.post(PORT1 + `/secure/warnThreaTop`); // 正常 post json 请求  ==>  application/json
};
// app信息
export const cfgAppstate = () => {
  return http.get(PORT1 + `/admin/cfgAppstate`, {},{ loading: false }); // 正常 post json 请求  ==>  application/json
};
